﻿#ifndef LOGGER_H
#define LOGGER_H

#include <QCoreApplication>
#include <QString>
#include "g3log/logworker.hpp"
#include "g3sinks/LogRotate.h"

class Logger
{
public:
    Logger(std::string appName=QCoreApplication::applicationName().toStdString(),std::string id="iv");
    ~Logger();

private:
    void deleteOldLog(int days);

private:
    QString m_sLogFolder;

};

#endif // LOGGER_H
